package mysql

import "gorm.io/gorm"

// 房源表
type House struct {
	gorm.Model
	Title     string  `gorm:"type:varchar(30);not null;comment:标题"`
	HeadImage string  `gorm:"type:varchar(500);not null;comment:头像"`
	UserId    int     `gorm:"type:int(11);not null;comment:用户id"`
	Context   string  `gorm:"type:varchar(500);not null;comment:描述"`
	Price     float64 `gorm:"type:decimal(10,2);not null;comment:价格"`
	Address   string  `gorm:"type:varchar(500);not null;comment:位置"`
}
